#ifndef libraryEngine_h
#define libraryEngine_h

#include <string>
#include <sstream>
#include <vector>
#include <iostream>
#include <fstream>


namespace LIB {

static const std::string	LOCATION =	"library.db";
static const char			FIELD_SPLITTER =	'\1';
static const char			RECORD_SPLITTER =	'\n';

struct songData {
	std::string name, artist, location;
	std::vector<std::string> tags;
};

void load(std::vector<songData>&);
void save(const std::vector<songData>&);

};

#endif